package it.fuesi.synoutils.helpers;

import android.content.Context;
import android.view.View;
import android.widget.Toast;

import it.fuesi.synoutils.R;

/**
 * Created by pascotto on 18/11/14.
 */
public class LayoutHelper {

    public static void manageGridItemBackground(Context context, View view, int position){
        if(position%2 == 0)
            view.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.item_even_bg));
        else
            view.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.item_odd_bg));
    }

    public static void showToast(Context context, String msg){
        Toast.makeText(context, msg, Toast.LENGTH_LONG).show();
    }
}
